var mongoose = require('./db')

var Schema = mongoose.Schema

//标签表
var cateSchema = new Schema({
    cateName: String, //标签名
    content:String,
    moren:{
        type:Number,
        default:0
    },
    status:Number,
    createtime:{
        type:Date,
        default:Date.now
    },

});

//创建model,第三个参数是实际表名
var cateModel = mongoose.model("cate", cateSchema,"cate");

module.exports = cateModel